package com.zzedu.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzedu.domain.ZzUploadFile;
import com.zzedu.dto.ZzUploadFileDTO;
import com.zzedu.enmuns.FileRelationTypeEnum;

import java.util.List;

/**
 * 资源管理Service接口
 *
 * @author Mr.Wang
 * @date 2025-01-30
 */
public interface IZzUploadFileService extends IService<ZzUploadFile> {
    /**
     * 构造查询条件
     */
    public LambdaQueryWrapper<ZzUploadFile> buildQuery(ZzUploadFileDTO zzUploadFileDTO);

    /**
     * 移除 类型id 为  xxx 类型fileRelationTypeEnum 排出 文件 excludefileIdList
     * @param relationId
     * @param fileRelationTypeEnum
     * @param exIncludefileIdList
     * @return
     */
    boolean removeRelation(String relationId, FileRelationTypeEnum fileRelationTypeEnum, List<Long> excludefileIdList);

    /**
     * 设置文件id 关联id 为  fileIdList
     * @param relationId
     * @param fileIdList
     * @return
     */
    boolean updateRelation(String relationId, List<Long> fileIdList);
}
